.class public Lcom/hyphenate/chat/EMCallManager$EMVideoCallHelper;
.super Ljava/lang/Object;


# direct methods
.method private constructor <init>()V
    .locals 0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/hyphenate/chat/EMCallManager$1;)V
    .locals 0

    invoke-direct {p0}, Lcom/hyphenate/chat/EMCallManager$EMVideoCallHelper;-><init>()V

    return-void
.end method


# virtual methods
.method public getLocalBitrate()I
    .locals 2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->localVideoActualBps:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getRemoteBitrate()I
    .locals 2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteVideoBps:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getVideoFrameRate()I
    .locals 2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteFps:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getVideoHeight()I
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteHeight:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getVideoLatency()I
    .locals 2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->localVideoRtt:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getVideoLostRate()I
    .locals 2
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteVideoPacketsLostrate:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public getVideoWidth()I
    .locals 2

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->mRtcListener:Lcom/superrtc/sdk/RtcConnection$Listener;

    if-eqz v0, :cond_0

    instance-of v1, v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    if-eqz v1, :cond_0

    check-cast v0, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallRtcListenerDelegate;->getStatistics()Lcom/superrtc/sdk/RtcConnection$RtcStatistics;

    move-result-object v0

    if-eqz v0, :cond_0

    iget v0, v0, Lcom/superrtc/sdk/RtcConnection$RtcStatistics;->remoteWidth:I

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public setAdaptiveVideoFlag(Z)V
    .locals 0
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    return-void
.end method

.method public setPreferMovFormatEnable(Z)V
    .locals 1

    if-eqz p1, :cond_0

    const-string/jumbo v0, "H264"

    invoke-static {v0}, Lcom/superrtc/sdk/RtcConnection;->setGlobalVideoCodec(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-static {v0}, Lcom/superrtc/sdk/RtcConnection;->setGlobalVideoCodec(Ljava/lang/String;)V

    goto :goto_0
.end method

.method public setResolution(II)V
    .locals 0
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    return-void
.end method

.method public setVideoBitrate(I)V
    .locals 0
    .annotation runtime Ljava/lang/Deprecated;
    .end annotation

    return-void
.end method

.method public startVideoRecord(Ljava/lang/String;)V
    .locals 1

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->emaObject:Lcom/hyphenate/chat/adapter/EMACallManager;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/EMACallManager;->startRecordVideo(Ljava/lang/String;)V

    return-void
.end method

.method public stopVideoRecord()Ljava/lang/String;
    .locals 1

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->emaObject:Lcom/hyphenate/chat/adapter/EMACallManager;

    invoke-virtual {v0}, Lcom/hyphenate/chat/adapter/EMACallManager;->stopRecordVideo()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public takePicture(Ljava/lang/String;)Z
    .locals 1

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->callManager()Lcom/hyphenate/chat/EMCallManager;

    move-result-object v0

    iget-object v0, v0, Lcom/hyphenate/chat/EMCallManager;->emaObject:Lcom/hyphenate/chat/adapter/EMACallManager;

    invoke-virtual {v0, p1}, Lcom/hyphenate/chat/adapter/EMACallManager;->capturePicture(Ljava/lang/String;)Z

    move-result v0

    return v0
.end method
